﻿using Project.Models;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Project.Service
{
    public partial class BeGoodAtService
    {
        /// <summary>
        /// 删除产品，同时将用户擅长的产品也擅长
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public int MarkRemove(Guid id)
        {

           string sql = $"update begoodat set IsDeleted=1 where id='{id}';";
           sql+= $"delete from UserBegoodatRelation where BeGoodAtId='{id}'";

           return  baseRepostory.ExecuteNonQuery(sql);
            
        }
    }
}
